import { createApp } from "vue";

// 全局样式
import './assets/main.css'

import App from "./App.vue";
import naive from 'naive-ui';
import 'virtual:svg-icons-register'; // 引入 SVG Sprite

// 路由
import router from "./router";
// store
import store from "./store";

// 全局自定义的 窗口右上角的最大化、最小化、关闭、置顶按钮
import WindowHeader from '@/components/WindowHeader.vue';
// 全局标题面板组件
import TitlePanel from "@/components/TitlePanel.vue";
// 加载svg图标
import SvgIcon from "@/components/SvgIcon.vue";

const app = createApp(App)
app.use(naive);
app.use(router);
app.use(store);

app.component('WindowHeader', WindowHeader)
app.component('TitlePanel', TitlePanel)
app.component('SvgIcon', SvgIcon)

app.mount("#app");
